Adapt scripts to chroot