Adding platform detection, in prep for supporting more OS

Adds platform detection and support for npme user.
Should this be `npm@v2.0rc` as per @othiym23's comment in Slack?