Fixes for bash with tmux & over ssh.