Added possible fix for too many file errors
(to test on windows builds)