Use uppercase for `OS` env variable

This is used for Windows system where this environment variable
is case-insitive. However, if Windows/Cygwin is used, Python
is case-sensitive and the conditions fail.