Restore custom undodir