Fix processor count detection with HW_NCPU