    # File lib/chef/knife/core/subcommand_loader.rb, line 43
          def site_subcommands
            user_specific_files = []

            if chef_config_dir
              user_specific_files.concat Dir.glob(File.expand_path("plugins/knife/*.rb", chef_config_dir))
            end

            # finally search ~/.chef/plugins/knife/*.rb
            user_specific_files.concat Dir.glob(File.join(env['HOME'], '.chef', 'plugins', 'knife', '*.rb'))

            user_specific_files
          end