fix branch snapshot build detection in build-scripts/make-jenkins-version

Should fix version numbers on rel branches for commits that don't exactly match a tag.