Add compatibility for newer versions of git