Fixes a bug that prevents files from being renamed on a shared directory.