Prevent JRuby rubygems warnings from breaking the build

/cc @myronmarston 
What is `$/`?