refactor to __bd_git_dir for reuse
GIT_DIR does not refer to the master repo