Use printf instead of `echo -e`

Fixes #446
v0.9.0
Use "typeset" instead of "local" for portability