Use bash for build_shar.sh

Bourne shell doesn't support arrays
Merge pull request #13572 from terminalmage/update-shar-script

Use bash for build_shar.sh