Fallback to lstat() in case the filesystem doesn't support d_type in struct dirent