#164122 by merlinofchaos: properly convert underscored to dashes, when constructing template file names matching hook names