os: basic platform detection