make edxapp work when not run from a git repo
Merge pull request #1636 from edx/jbau/fix/git-middleware

make edxapp work when not run from a git repo