ammended for deprecated customFds option in child_process

I found myself having to patch this up and I thought it might help others too.