Break for() if module found; return at end
Merge pull request #2 from lemats/patch-1

Fix caching. Break for loop if module found. Return value at end.