Clean up settings file