Fix for older versions of git