Don't use File::Which.

Simpler just to iterate over the paths ourselves, as we search through through
the whole path for each candidate executable before going on to the next one.