Extracted get_os_string to common base class