How about saving just the OS to a variable named $OS instead?