Fixed some bugs with file handling on windows side