Change getInstallPath() to getPackageBasePath().

LibraryInstaller::uninstall() uses getPackageBasePath().