Fixed oldPath update in files module.