fix enable pathinfo without chroot dir