Oops. Almost!  This line should be:

```self.state.functions['cmd.run']('attrib -R "{0}"'.format(cfn), quiet=True)```

Notice the   "self.state.function['cmd.run']"  instead of "salt.modules.cmdmod._run_quiet"   ?