String.shellescape doesn't work well on mingw under Windows.

Instead, making command args surrounded by quote symbol will do the job. Now it's compatible with Windows. Tested under Windows 7 with RailsInstaller 3.0.0(Ruby 2.0.0).