adding a few xetex checks to the script