get_os function

Checks system OS