Avoid scheduling large number of mincore jobs when few total cores requested. Thanks to @roryk