More verbose module name error messages

When a module name doesn't match one of the acceptable regexes, then
print out the name of the module that was the problem.