Derive version from git tag.

The version of this build determines the Scala version to package.
We look at the closest git tag that matches v[0-9].* to derive it.
For testing, the version may be overridden with -Dproject.version=...