Fix git version catching