fix the shebang in empty_plugin.py
use printf instead of echo -n in tests

Strictly POSIX-compatible echo (e.g. on OSX) doesn't support -n.