added DMS_NPROCS env var so user can specify number of MPI processes