Remove bashisms from all scripts