add and modify erb files for dynamic jenkins jobs

This commit fixes various bugs and issues with the erb templates for
packaging and repo. Mainly spelling errors or mislabeled variables.