Fixing path issues on Windows so that DirectoryScanner is able to find files by pattern