export BUILD_DIR and CACHE_DIR