JRuby: Better test env detection
JRuby: Better test env detection

appneta/ruby-traceview,boyang-li/oboe-ruby,appneta/ruby-traceview,boyang-li/oboe-ruby,tlunter/oboe-ruby,tlunter/oboe-ruby,boyang-li/oboe-ruby,tlunter/oboe-ruby,tlunter/oboe-ruby,appneta/ruby-traceview,appneta/ruby-traceview,boyang-li/oboe-ruby