updated setupEC2Instance.sh to use bash's command instead of which.
merged conflicts