dynamically get nprocs and mpi command