Modify directory name and hierarchy.