Support versions of git older than 1.8.5