cirrus: Remove bashisms from test script to make it compatible with /bin/sh