Updated the code that control where the files are saving in differents operating systems