Hey Danny,
Keyboard Maestro's Execute a Shell Script action does NOT pick up anything from your system shell environment.
It's a blank slate.
See this in particular: Path in Shell Scripts
This discussion might be helpful as well:
Problem with Shell Script vs. Terminal (Git, Beyond Compare)
-Chris