Replace template paths