Use nproc instead of greping a proc file to find out the cpu number