Move child_process require to top of file

Closes #1