Strip non-majors from version number.