fix for repos ending in .git
Merge pull request #9 from toffaletti/gitfix