Fix update problems on older versions of git