upgraded: Check chroot() return value