Wouldn't it be better to try calling `/usr/bin/id -u` directly, instead of just giving up?