Fix the duplicate directory name error that occurs when the destination directory already exists while moving folders.