Fix a traceback when running with git on cygwin.

Because cygwin paths can sometimes get different results (either C:\... or
/cygdrive/...), we need some special handling for determining the toplevel
directory of the git clone.

Trivial change.