Improve and fix output of deps asset in templates