Fix inverted platform check