Fix RPM build script to properly handle release versions.