Only run this if grub exists

i.e. we don't need this on ppc64