Add ability to use a git-dir