Fix gem build test on JRuby