# File lib/mcollective/util.rb, line 498
    def self.templatepath(template_file)
      config_dir = File.dirname(Config.instance.configfile)
      template_path = File.join(config_dir, template_file)
      return template_path if File.exists?(template_path)

      template_path = File.join("/etc/mcollective", template_file)
      return template_path
    end