move target directory to have the same name as the directory in the