pm-functions: avoid `echo -n`

The `-n` option to echo(1) is not portable.  Use printf(1) instead.