Remove bug so that a proper comma delimited list is created
Previous template code would create a list with the last item having a comma after it that might affect configurations. The changes ensure that a comma is not added to the last item in the list.