src/loslib.js: In os.remove, try unlink and on EISDIR try rmdir
src/loslib.js: In os.remove, try unlink and on EISDIR try rmdir

This is what glibc does, it's better than trying to stat beforehand

fengari-lua/fengari,daurnimator/fengari,giann/fengari