llvm: Improve the script and the compatibility with Mac OS X

Workaround for #2358.

@artagnon @toroidal-code @maverickwoo @gudbergur It should work even without the symlink to the good llvm-config if you are using homebrew.