[COOK-2986] Fix foodcritic warnings

- Use strings rather than symbols
- Use platform_family