cqapi: fix invalid usage message
cqapi: checking for curl command using 2 methods: whereis + where (fallback)