safe_function for automated installation
Merge pull request #79 from prometheansacrifice/automated-osx-install

safe-install function added: checks if a package is already installed