Fix how the XLSDIR is defined and set in the script