Fixed bug in daemonizing code example