fix powershell bug in pkg uninstaller