Fixed defining number of cores on linux.