node: implement `DEBUG_FD` env variable support

Closes #146.