updating command tests so they are robust to minimal changes in output
Merge pull request #541 from stan-dev/feature/issue-540-fix-brittle-command-tests

Fixes #540. Fix brittle command tests