fix for emacs tramp mode