child_process#fork invokes incorrectly 

fix #386