Add better error reporting to build/get_cached_dependencies.sh