Make exports a chroot function for custom roots