[OE-3856] adjusted script to figure out what the shortened version of the table segment is because it's no longer the module name.