try and support older versions of git