fix excel file saving if directory doesn't exist