Fix existence check for keychain.