Use `command -v` instead of `/usr/bin/env` for consistency and reliability, and add check for `llm` command.