Add some compatibility code for tmux 1.6 and 1.7, this isn't working yet