allow injecting a mock filesystem into LibraryInstaller and fix LibraryInstallerTest