patch for avoiding accidental overwrite of files + bugfix for rename/delete/create files