Quick fix for number of cores detection