Remove bashisms for tests