updated install script to work better on vanilla osx