Run e4rat scripts only if the package is installed.
Fix selection of Grub version.