cmake: Fix git version info (again). (#2523)