Fix scan_dirs_for_shlibs on NFS, the d_type field may be DT_UNKNOWN.
Merge pull request #501 from zxombie/master

pkg fails to register a package with NFS root