chroot: create_chroot.sh refactored so it is more readable.