prepare the ITs test suite to work with Rubygems version 2.4.5

using the gem command line tools is tricky since they keep state between the
execution of commands. this patch reduces the impact of this caching on the ITs.

fixes https://github.com/jruby/jruby/issues/2343