Use module name if name not provided

This is a convenience so you don't have to write the name property.