It's nearly always the search path issue.
For a helpful general approach, see:
Create a PATH Environment Variable for Keyboard Maestro and Add /usr/local/bin to the Default Path - Questions & Suggestions - Keyboard Maestro Discourse
For more information, see the wiki Searching the Forum for Answers section.