Fix platform detectionwq