Although it's not part of this commit, there is a function in this file that checks if config file exists. It's not used anywhere and I am not sure how it works. Do we want to correct it and use to check if conf file exists?