Add method for syncing directory to the chroot