Check the RUBY_ENGINE when determining dependencies.