Fixes #1171. Rails new failed with JRuby on Windows 7