Runtime: raise the appropriate exception for undefined recursive modules