Fixes filesystem tests sometimes failing on Windows.