Use awk instead of grep to fix false negatives when testing