Rename a directory name.