Check that module names are Ruby class names