This removes the need to create an intermediate script and copy it to
change the permissions. This is not perfect because the template should
really not be executed, but:
- The copy prevent the file from being used as a dependency
- The template is expected to move to a more appropriate template
directory which is less confusing to users.
This also makes sure it is properly tracked and regenerated if the
template changes.