Fix mishandled nproc resolving.