Fixed permissions on files dir in app templates