Fixed directory output error for XLSX generation