Fix issue installing packs with overwritten libraries