This commit switches the command-line scripts to use bash instead of sh so that we can take advantage of features that bash provides like arrays. Relates elastic/elasticsearch#2214 Original commit: elastic/x-pack-elasticsearch@826c10ef04
See elastic/elasticsearch#1022 Original commit: elastic/x-pack-elasticsearch@3ee8761312