scripts/env: use command -v instead of which