Added PackageManager::cleanup for removing temporary files