Refactor the code in clang to find a file in a PATH like environment variable into a helper function