Move the updating of the Xilinx User Libraries to when you open the sketch.