Fixes the find_tool() function so it looks in other paths

The for-loop only checks the first element in the array and will not attempt to locate tools in any of the other paths. This causes it to fail if the tool does not exist in $PATH.