version.sh: Print versions based on the last git tag for release branches