Fix UID and GID when providing IDs instead of names

__Hi there!__

I stumbled upon this problem wanting to set my `god` task as a user given it's uid instead of it's name.

There might be a smarter way to do this, but this PR handles the case.