Make sure undo directory is saved, but not contents.