fix processor count for a few ubuntu versions

On a few ubuntu versions, _NPROCESSORS_ONLN config
is broken stock. This works around it.

NOTE: in some cases, a processor may not be online,
but may still appear in /proc/cpuinfo.