Use --git-dir switch to determine remote origin url

Fixes adammck/forkreadme#1
Merge pull request #2 from usommerl/issue1

Use --git-dir switch to determine remote origin url