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

Fixes adammck/forkreadme#1