I and @Miciah actually spent a bit of time looking at ways to refactor this, but nothing we came up with was any faster or clearer. Merging the two loops would mean an additional check to see if the start of `$inifile` matches `${ERB_PHP_INI_SCAN_DIR}` or `${SYSTEM_PHP_D_DIR}` at each iteration.

If you see a good optimization we missed, please give me a hint. :) AFAICT, this gives the *fastest* correct result out of all the techniques I tried, and speed is important here.