Fix file.recurse on Windows

Fixes #4192