Fix problems if a file is moved, and another file is created with the same name
Fix removing and renaming directories from the Shared directory