Fixed rename of files when folder for local files is not already created