cleanup prefix of libs to remove excessive lib appearing in filename