Updated uninstall script to remove users and groups at the end of the routine