search for a global or local config file