add check option before tmux for remote session