refactor(zsh): use 'type' instead of 'command -v'