minor, posix-ify git-version-gen script

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
Merge branch 'bld/dist' into next

* bld/dist:
  minor, posix-ify git-version-gen script