Edit config file