[PATCH v2] Remove bashisms from spectrum shell scripts