Normalize bad config values across platforms

* fix #243
* fix #247