version.sh: Unify version generation