version: fixes to check_new_version.

Including the obvious variable name fix, a typo, but also: change
logic to allow build releases on existing versions.
Merge branch 'master' of github.com:JuliaLang/julia