Make the dependencies sections logic consistent with run* sections. Fixes #42