Fix platform check.