Fix potential division-by-zero
Add `platform` property to Config class
Override platform decision if set by user