Fix ruby version check