Write to stdout in daemon mode

Fixes nohup.