zsh: Change pager test to avoid output in non-interactive sessions

Fixes shell outs in Emacs and tramp/scp to systems using my dotfiles.