[WIP] os_nodetype: impl with libuv

step towards #133
Duplicate check of `S_ISDIR()`. Also, might a file that `S_ISREG()` returns true for be writeable?