[zsh] replace `which` with `command` for compatibility