Fix build number calculation for major update