Fix d_ino field name in FreeBSD
Improve directory searching