Fix bashism in tests added by r221341