reverted changes not needed and made the proper fix for grub-install error.