throw an error if a module definition does not return an exports object (fixes #177)