Same library name normalization as in regular component loader