Improve error message at makeRequire()

Previous error message 'Invalid require call' did not shed light on error's nature and wasn't helpful with bug localization.
Added to the message the module name and hint for what should be done.
Minor code reordering for the other error message in the same function.