fixed run.sh generation for spmv and lud