Updated test to use environment variable if it exits.

Testing Done:
./build-support/jenkins/build.sh runs successfully

Bugs closed: AURORA-101

Reviewed at https://reviews.apache.org/r/18598/