Fixed extra line being displayed on stdout when daemonizing