Give a more precise message when module name are wrong (Closes: #1236).