Update templates to use Pkg::Config object