Corrected the way the number of CPU is calculated, apparently the old
method is not working anymore on Yosemite...