Fixed unbound-name bug in find_modules().
Fixed unbound-name bug in find_modules().

In some cases we could access a variable name before it was bound. This
was caused by incorrect try-except blocks.

sixty-north/cosmic-ray