Fix failure to do --chown when socket does not exist yet
Fix too early daemonizing (before opening the socket)

Conflicts:
	dived.c