smarter config file finding