Fix repo name for URLs without .git extension

Only strip out '.git' from the repo name if it exists.
Merge pull request #55 from anjdreas/fix/error-not-found

Fix Error: Not Found