fix messed-up errno if remove fails for a non-EISDIR reason
[musl] / arch /
drwxr-xr-x   ..
drwxr-xr-x - i386
drwxr-xr-x - x86_64