Shell fixes: TMUX support for su[do] and modes on old zsh

Contains fixes for #800 and #801.