Implement a correct check of version numbers