refactor(osx.install): check git ruby repository and phantomjs refactored