fix directory search order

also clarify some log output