Fix io/resource call on Windows (fixes #27)