Fixed stderr handling
Merge pull request #91 from ichizok/fix-hstderr

Fix stderr handling