Add toolchain repo for llvm for <13.10.
Should have used float cast instead of int for llvm distribution check.
Only install ag if the PPA is available.