Fixed deamon mode so console doesn't start in background