use child_process.exec correctly