Added Rubinius support. Replaced RUBY_PLATFORM check with RUBY_ENGINE