Use child_process.exec and fixes some warnings

Also fixes #1, fixes #3 in a better way.
Clean up
Allow overwriting maxBuffer for exec command
Merge pull request #4 from LeoColomb/patch-1

Use child_process.exec and fixes some warnings