Fixes #1. When another instance is detected, a command is sent over the socket for the original to write to stdout and to a temporary file, which is then tailed by the new instance. Can be overridden with --replace.
rewritten without goroutines or checking if processes exist and it seems to work much better now.