add GIT_TRACE_GITDIR

An attempt to make it easier to debug repo lookup. However,
since we chdir around, the directory name is always very
uninteresting. The outer code needs to give more context
about how the search progresses.