Added some support for tmux.