guard against os._name

os._name is system-specific and may be missing