Avoid appending a double ".erb" in templates

If the user gives a .erb extension to the template, don't add it