Fix running multiple commands
Merge pull request #41 from errietta/bug1079343

Fix running multiple commands