fixing version.py to detect when it is in the right git repo before calling `git describe`