Use file resource instead of exec

Puppet is capable of managing file/folder permissions via the file resource. There is no need to use exec.