More robust check for llvm version