Switched use of `file` to `open` in git version.py