Move check for local config to module global scope

This should ensure these file checks are done only once when the process
is started.
Undo the last commit

It was not necessary.