Added missing save flag in shell create_work function. Added missing
num_cores change in update_dag.