build.sh: Deal with dependencies for single-file packages.