Fix grub legacy version detection.

Since get_version was using the first version like string in a binary,
it returned an incorrect result for grub legacy (2.3 instead of 0.97).