Fixed uniqueness of files/directories, protected directories from write