build script detect cpu core