Replace version check with a better one.