metadata-service: fix ssh key retrieval and application

The metadata service wasn't properly fetching the ssh keys from metadata.