Use `command -v` instead of `type -p` (see #6128)