stopped renameFile() from moving files to root directory