fix checking ruby version.