Make alert work with iTerm or Terminal.