update build to use env variable.