Fixed applying permissions, deleting and renaming in read-only filesystems.