Fix #4344

Add an else check to mimic the search routine in the lookup
of the configured grains file