fix for loading git revision from dev-tree without installed version of loopy
fixes errors like this one e.g.
FWIW, I typically don't have an installed version of loo.py in my conda-environment where I'm working on loo.py development (to avoid accidentally loading the installed version instead of the dev-tree)