zsh: replace $(which ...) with $(type ...)