Manually detect rpath flag on jruby