git-svn: ensure we're at the top-level and can access $GIT_DIR