Fix version parser.