Fix OS detection.