[zsh] Code cleanup and bugfixes for .profile

- Use path_append and path_prepend functions to avoid duplicating logic
- export LESSHISTFILE and VTERM (duh!)