node: malloc(0) is valid C
node: fix typo bug in oom()
node: emit error on opendir failure