Fix bashisms in samba event script.