Avoids errors when running prezto in Emacs terminals

Without this, running `zsh` in Emacs' `ansi-terminal` caused errors. This prevents that.