[PATCH imagefactory 11/32] Rework ec2_decode_credentials to be a little shorter.