fix basename of big matrix output file