Move RELEASE=list/help handling earlier in main.sh
Add chroot restoration to the installer; closes #297.