Partly revert "shl: handle pathconf() errors"