Fix fatal: Not a git repository: '.'

Recent git does not recognize --git-dir or has a bug with it (1.9.2)