we should use CACHE_DIR after resolve its defaults in build_lib.sh