Implement ruby version check.