More speedup.

Remove the pre-test, and replace the slow egrep conditional in the
while word {...} loop, with the shell wildcard test from the removed
if {} pre-test.