First version of chrootdir.sh