File.rename won't work across partitions, snd return EXDEV

This errors poped up as I was trying to have /usr/local/share/gems shared
accross docker container for persistence.
Merge pull request #970 from mscherer/master

File.rename won't work across partitions, snd return EXDEV