Fix enter-chroot on old chroots. Fixes #837