Fix notices and using not-defined variables

now $type_valid declared, only if $reason is false:
https://github.com/uecode/daemon/blob/master/Uecode/Daemon/Options.php#L214

but it used in code below:
https://github.com/uecode/daemon/blob/master/Uecode/Daemon/Options.php#L322