also handle directory resources when no keyring can be found