check tmux server availability before attaching tmux