gpo: Make the gpoupdate script much more reliable