Added some basic error checking to the install script.