make grep tests safe under set -e