Fix metadata agent template path