“to grep the right files”
Talking about grep, maybe you can ‘grep’ yourself through the files (if haven’t already done so) and (assuming, hoping, you are on Linux)?
grep
grep -lir “search term” .
location of the files:
/opt/Publii/resources/app/
Having said this, hopefully there is someone else that can answer your question.