Fix loading of credentials for EC2MetadataCredentials