Add coverage status badge.
Change platform mocking to use opts since process.platform is read-only since node v0.11.10 .