install/install.py and install/install_altinstall.py: Fixed error-handling code.