if/else fix for grub