updated grub-efi hook for exam environment