update usage of sed to work correctly on linux gocd agents

Signed-off-by: David Julia <djulia@pivotal.io>
use enviroment variables to configure aws cli

Signed-off-by: Matthew McNew <mmcnew@pivotal.io>