Fix a bug on windows when processing the files