Only daemonize if we've been asked to

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>