Updated Windows XP compatibility with a replacement of the %PUBLIC% variable