Check for chroot dir and chroot if necessary.
Prototype implementation of bind mounts.