Fix vagrant set up.

Move the gitversion function out of hack/config-go.sh to hack/util.sh so that we can build a release without having go installed.

Fixes #1057