Fix chroot setup script validity test, and delete the script on failure.