added check for presence of tmux