Smarter and more selective llvm-config search