Change iTerm to AppleTerm, create undodir