Fixed error in daemon mode when no tty available

Be setting stdout/stderr cloudprint works in daemonized mode if not tty is available (initscripts, systemd, upstart, ...)

Fixes issue:
armooo/cloudprint#45