pmbootstrap init: ask for work folder before asking for device
Created by: ollieparanoid
This fixes #1066 (closed), where pmbootstrap crashes with a permission error when you run it for the first time (no work folder exists) and you run the boot.img analyzer because you want to start a new device port.
It also prints a more helpful message if pmbootstrap crashes before the log file was generated (suggests to use --details-to-stdout).
How to test
pmbootstrap shutdown
mv ~/.local/var/pmbootstrap ~/.local/var/pmbootstrap_old
rm ~/.config/pmbootstrap.cfg
touch /tmp/test # dummy file for boot.img analyzing
pmbootstrap init
# create a new device
# run the wizard on /tmp/test
# without this PR it crashes here, with the PR it does not!