Update version increment behavior

Only increment the version in the local pom if there is a remote version
with a higher build number.