Cleanup of settings file