fix identities files scan. only add when priv AND pub key are available.