Add support for uninstalling beta packages in updatePackageVersion