Clean up version parsing to fix installer build problems
Make sure Version.java gets rebuilt if git version changes