replaced null with undefined when closing scope
use mknod instead of create
implement mkdir and unlink
don't try to recreate buffer