Use different syntax for supported platforms

This will resolve any errors in uploading the cookbook with knife.