Make errors quiet when searshing for default config files.
Code cleanup, add const when needed.