Fixing version guessing for FreeBSD 7 and up.