Fix mantis bug 302.

compiler/module_imports.m:
   Use a det search instead of a nondet search, to avoid running out of nondet
   stack.