Account for JRuby language versions and REE

So that we catch 'jruby-1.7.16.1-d19' and 'ree-1.8.7-2012.02'