Wrapping the platform case with node[:platform] for happiness on Chef11 clients.

The 'case platform' lines in ::default and ::plugin were breaking chef11 clients. I made sure to reference node and things are functioning as expected.