Issue #357: use printf instead of echo sprintf
Merge pull request #369 from lukecarbis/issue-357-2

Issue #357: use printf instead of echo sprintf