Fixing RUBY_VERSION detection in spec