fix errno handling in scandir:
[musl] / arch /
drwxr-xr-x   ..
drwxr-xr-x - i386
drwxr-xr-x - x86_64