Improve llvm config detection portability.