fix invalid pwd when chroot