Support stdout and stderr redirection on daemonize