Automatically create undodir if it doesn't exist