* [core]: check stat() errors in oyIsDir_()