It sounds like it has to be some kind of OS check written into the script. If you post the code, Im sure we can track it down.

And please make sure to use the CODE tags when posted your script so that it gets formatted properly.