Set undo dir