Consistently use nproc for counting the CPUs