Fix #10: Now stdout/stderr is correctly redirected to the logging facili...

...ty when daemonizing.