Add undodir for undo files