restore file in the root folder if the origin folder is not writable