Upgraded uid_gid.sh