refactored OS identification for clarity