Don't use getuid() twice.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>
Use explicit bool for bool function.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>