Fixes several bugs in install.sh