Fix invalid platform check.

Ticket posted here:
https://tickets.opscode.com/browse/COOK-4349