Fixed hardcoded worker count for job manager.

Added procedure to detect number of active CPU in system.
Added cvar (sys_cpu_count) to get the cpu count.