small fix on ruby_version check

The ruby version check could happen before Rails.logger gets intialized
so we cannot assume that Rails.logger is not nil.
Example: https://travis-ci.org/errbit/errbit/jobs/8719703