Fixed dir.buildGitURI and added a test spec

Protocols needed to be flipped
Merge pull request #154 from insin/github-url

Fixed dir.buildGitURI and added a test spec