Fix premissions problems and move config.yaml out of chroot_script