a bit flexible behaviour for tmux-session