make nproc check better