Uses sys.platform instead of cc.config.platform

cc.config.platform is no longer supported.