Fix module exists deprecated

Can't reopen https://github.com/socketwench/flag-drupal8/pull/36, so here's a new pull request for the remaining module_exists().