That's interesting: it shouldn't be `export BREW_DIR=${BREW_DIR:-/usr/local}`?