Fix windows file creation issue