PrepareEnv/ClickOnce: fix and improve the x-zb filter