create undodir's parent if necessary