added optional ec2 state to deal with changing IPs of exported AMIs
added hostname config to ec2 prep script