Fix a bunch of grub coverity issues