Only use ag if it's installed.