fixed tmux remote session detection