Use `printf' in stead of `echo' whenever variables are involved

to allow for more predictable invocations and option handling.