Separated conditions to fix error message when tmux not installed