Fix issue when there's no keyring for cwd.