Add env var support to AMBuildScript.