Detect tmux and automatically run shell completion tests
tmux 1.6 compatibility in shell completion tests

The tests should now work with tmux 1.6-1.9