Adapt config file