Iterate version numbers to correct version