serf: only write keyring file if it is configured