bugfix: $BUILD_DIR -> $build_dir var naming