[rt.cpan.org #74331] fix file.t on cygwin

This takes the patch supplied by rurban and reformats it for the CPAN dist.

This test is currently failing for cygwin build tests in bleadperl.

Tested on cygwin (system perl and blead v5.17.0-234-gce2dc92) and Strawberry perl 5.14.2