Support dumb environment, to use with emacs TRAMP