Improvements to example ec2 distribtuion script.