Adding platform detection, in prep for supporting more OS

Adds platform detection and support for npme user.
Testing sounds great. Ship it!