Check your actual $PATH differences between the Terminal and KM.
For more information, see the wiki Searching the Forum for Answers section.