[PATCH] Remove bashisms from spectrum shell scripts