Improve deps output in templates