fix bug locating the config file