Fix tests on cygwin

Thanks to KindOne for reporting it