Fix handling of version history if the newest build has the same version number.