Fix UEFI detection.