Removed dependency on GNU coreutils' nproc

Falls back to Darwin's sysctl hw.logicalcpu first, then to 1 cpu.
More portable BuildKit