some install.py bug fixes and improvements

Pretty minor overall.