Allow setting template path and correct dependency name to include prefix.