better zsh support for lower versions

- add support for precmd_functions (and similar) function arrays
- only add git info to prompt if zsh has regex module
- set xterm title