Copy advanced.config overlay logic from cuttlefish