Initial implementation of the self-pipe trick.
Rename pid file prefix to .smith.