[Core] Removed Windows-specific FileSystem code for ScanDirectory;