add mkdir and chmod functions to chroot-sh