test: Fix unportable shell script construct