builder/common: channels instead of unsafe read/write for communicate
builder/amazon/common: prefer public DNS if possible for SSH