__file/__directory: Patch for systems without stat(1)
This merge requests patches the stat explorers of the
__directory types to work on systems missing
stat(1) (embedded Linux) or systems other than Alpine Linux using BusyBox stat.
@ander I noticed that your Solaris implementation is quite similar.
I checked the Illumos distributions OpenIndiana, OmniOSCE, DilOS, Tribblix and they use GNU coreutils' stat.
So I'm wondering whether "real" Solaris is different and if one of the other commands or
fallback() could be used instead.