Cleanup .cfg file.