Setup-environment-internal: use getconf to determine the number of cpus

If /usr/bin/getconf exists use that, otherwise fallback to /proc/cpuinfo

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>