Fix bogus bug in version parsing