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

llvm-svn: 212057
2 files changed