parser/grub2: Better menuentry parsing