I don't see where `$puppetconf_path` is being declared, I think it either needs to be added to params and redeclared as a local var like `$command` or perhaps just changed to `$::confdir` as previously discussed.