fix tmpl permission file mess
Merge pull request #443 from davidromani/master

Fix tmpl file permissions mess