Go to aws dir before getting ip.

Signed-off-by: Jenny Chou <jchou@pivotallabs.com>