like linux which, can find where the exec command is
Cross-platform smart which alternative
Ruby Which