Adding platform detection, in prep for supporting more OS

Adds platform detection and support for npme user.
do'h!