Now using getCmdAndArgs. Fixes #4

Wrote a fix for #4. We are now using `getCmdAndArgs` and concatenate the results into a string, which is later sent to `exec`, just like before.

Let me know if you want me to open the PR to another branch.