fix(grit): handle metavariables inside quoted strings (#11425)