[COOK-2914] Fix foodcritic warnings

- Use strings rather than symbols
- Use platform_family