audit: improve FileUtils check.

Match the parens properly and only interpolate once.

Closes #35288.
Closes #35291.