Fix chroot name detection in enter-chroot.