use nproc to consider all cpu(s)

Change-Id: I1e1c1b6f32735878af1990dbd0e34257adfe8f51