Making the uid settings work without chroot

Fixing a bug that would not allow setting user id of a process without
chrooting first