support old version of git