zsh: Guard export of texmf home directory with an if.

Also include quotes for other directories.