Provide a meaningful exception message when import_dotted_path fails