The OS isn't Linux because you're using Wine. The OS can very well still be Windows if you were using Wine under cygwin; it's not a reliable check at all.