Fix deleting of folders with read only files.