discover/grub2: Implement save_env command