Add snapshot_logic to build.py

If -SNAPSHOT is going to be appended to the version
string, then we make an effort in increment the last
digit in the version to follow maven semantics.

This will only affect building outside of hudson.
Version numbers inside of hudson will continue to
be fully `git describe` based.