Fix platform checks