adding one more condition for older versions of git