Fix and simplifier of cpus read on FreeBSD and Darwin