Fixed deleting file when the directory does not exist in the writable branch