Fix the CPU count detection