Fix possible bashism in test.