discover/grub2: Populate $prefix from config file location