in reply to finiding the os type
You should probably show us the code that sets those variables.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg