Improve the testsuite's LLVM detection