Correctly install grub on replace as well

Ticket:	#6993