Added support for setting uid/gid, changing cwd, and changing root