minor: Fixed deprecation warning in platform check

Using "platform?" caused a warning of "Setting attributes without specifying a precedence". This seems related to the bug http://tickets.opscode.com/browse/COOK-1929