zsh: add support for global dirstack handling