Refactor build-all.sh
Refactor build-all.sh

Reduce repetition
Change the cwd to the build directory in preparation for "COPY" in Dockerfiles.
I assume the official build process also does this, but I don't know for sure.

docker-solr/docker-solr,docker-solr/docker-solr