Fix up masterversion and build script.