fixing edge-cases in URL parsing.
Merge pull request #15 from visionmedia/fix-edge-cases

Fixing edge-cases in GIT URL parsing