We had the same discussion here: Installing SNAPHU on Macbook
The path variable is a list of directories which are indexed for later use, so if there is a command inside, it is found by the system.
@gnwiii suggested to call snaphu by writing the full path to snaphu as an alternative.