redid the logic to handle the renaming of files/project directory.