Create stgit/basedir.py for determining the .git directory