fix scripts to run the chroot outside of an image