Adding platform detection, in prep for supporting more OS