Remove some bashisms from tests