Fix dependencies for JRuby
Only use oj for JSON when not on JRuby.
When on Java, use Rhino instead of V8.
In contrast to V8, Rhino doesn't understand Pathname instances for the #load method.

V8 can cope with both, so just use File::join which returns a string
and we're fine with both.