fix for older versions of git