Update Cli.php

Bug that was preventing daemonizing
Merge pull request #1 from payomdousti/patch-1

Update Cli.php