Work with older versions of GitPython

Ubuntu 12.04 LTS ships with a pretty old version of GitPython, so rework
some of the calls to work with either the newer 0.3.2 or the older 1.6
versions.