simplify logic to check for module gio.