Adds more error handling to install script