agent: fix keyring loading when config is passed off