Some fixes to the build script to adapt to the new versioning standard.