Add debug code to build/cache_dependencies.sh