Check for persistent_undo before setting undodir