discover/grub2: Allow EOF as a statement terminator