Un-bashify ec2-metadata script.