Fix Gem.ruby singleton method on Windows