Fix git command for older versions of git