Use 'which tmux' instead of 'type -a tmux'