I'd prefer to see this block remain uncommented if you plan on using this feature at some point in the future.  Just setting CACHED_DIRS to an empty string above would have the intended effect of not attempting to restore rubygems.

If you don't think you'll use this feature, remove the lines entirely instead of commenting them out.