Fixed some of the logic in linux_gui_sudo()