Fixup new_or_edit template script.