dtbtool: use stat to determine file type if its unknown

* Some filesystems (xfs) return 0 for d_type on readdir
* If the file type is unknown, attempt a stat call to see if
  it can be found that way.

Change-Id: I2f7a90a73cd9614aa34cd4654d007393f45db9f9
1 file changed