Use defined?(JRUBY_VERSION) instead of RUBY_ENGINE

Fixes #149