Fix bashisms in S09-cleanup script