makes previous FileWriter fix to be applied to windows platform only