Improves version check