Fix bug with finding configuration file