discover/grub2: Use script_env_set when initialising the environment