At the moment, BUILD_DIR is set in scripts/gulpfiles/config.js, but certain bash scripts in tests/scripts/ also need to know this value and for now have hardcoded constants.
Describe the solution you'd like
Have the bash scripts read the value of BUILD_DIR from config.js.
Describe alternatives you've considered
Have config.js (and the scripts) read the value of BUILD_DIR from some other more bash-compatible config file, or maybe an environment variable.
Additional context