Fix git version parsing bug (Fixes #3)