[server] Fixed detecting the numer of cores