Fix FreeBSD version detection.