update AMI build script