Fixed a small bug when calculating the next build number