Fix terminfo when using multiplexors (tmux/screen)