Fix issue with not creating config file correctly if non exists