fixes issue #387 -- printing on every iteration in every block
making command test cross platform
Merge pull request #399 from stan-dev/bugfix/issue-387-print-every-it

fixes #387 -- printing on every iteration in every block