Fix Gem::Package tests from IO on windows

Patch by Luis Lavena

Fixes #861