Merge pull request #84 from electric-blue/master

Fix seg fault in run_cmd