updated install script to be universal for OSX and UNIX