Fixed permissions for template so that output is executable