Now also sets uid and gid when not forking.