Switch to using `process.platform` instead of `os.type`.

Also, use `common.platform` everywhere.