also only add a kernel entry if we find a corresponding initramfs
This fixes the installation of the grub2 script.