provisioner/file: set file/directory permissions

fixes #1064