better chroot dir handling