Allow setting of server logdir and state path