Fix for Windows platform

Hi,

Your code didn't work for me on windows.  It doesn't have a /dev/null.

I changed it to use Ruby's Dir.Chdir()... I think it still does the same thing you intended.

-Paul Prince
paul@littlebluetech.com