Better test for searching PATH.