template: rename parent to dir, and drop sibling