bootconfig script uses ZFSBOOT_DISKS variable that isn't defined, and auto-detection of the ESP partition seems to be unreliable in some cases. Fix this by passing ZFSBOOT_DISKS contents from zfsboot script via temporary file.
While here, fix printing of debug messages in bootconfig (helped with debugging this :).