Add has_module_perms to fix issue #16