Coincidentally, I asked from the wisdom of the monks on a little sub I wrote on this node. My problem was that the script was working and I didn't thing it should have.
It works fine on everything I tested (Linux, NT, 95, 98 and BeOS). Just remember that on Win machines you have to indicate what HD you're running off of, ie: