Fixed a bug in the execution of scripts in the chroot