Backport rubygems fix from upstream repo for Ruby 2.2.x (2)
It's difference backport request with #12248
rubygems fixes failure of installation on NFS. I attached patch that it fixes.
and I hope to bump version to rubygems-126.96.36.199