add support for dumb prompt so that emacs-tramp can work.