ci, t, tools: use `command` and `type` instead of `which`