start new session when forked in spawn mode.
make server chdir to socket directory