functions: Handle older versions of git