great little script

I don't really know how you could make it better, maybe os detection?