Support older git version in configure