better config file auto discovery