Clean-up settings file