Command line handling, basic OS detection.