Create undo directory automatically.