nproc: support --all and --ignore and respect OMP_NUM_THREADS