Fix incorrect detection of tmux output if tmux is not installed

If tmux is not installed then it always detects 1 detached job.