Work around mosh-server issue

It always sets TERM to xterm-256color if a 256-color terminal is
detected for some reason. Since the most common (personal) use case is
ssh inside a screen/tmux session, that is not the correct behaviour.