Auto-guess the restype for boolean values
Fix un-portable code that grabs first byte of version string
Record change by Mike Thomas.
Kind of a hack, but don't do anything to the root user, if 'root' was specified as system_user in config.
Record latest cherry-picked change from Mike Thomas