Autodetect CPU count on Linux