Fix version-detection.