Fix a typo in the Java file and update the build process so that it works with constantly changing version numbers from the reviki build.