Change testdeps to print dependencies only when needed.