Use different syntax for supported platforms

This will resolve any errors in uploading the cookbook with knife. This fix is for the v0.3.2 tag.