Fix mix up between used variables for ouput file between the different OS