Add git-version to more than just Core.

This won't catch native or armips, but it will catch more before and still
won't make the build wrongly dirty all the time.

See #5575.