Fixing an issue with windows based file handling