fixing a bug in recalculating the image paths of css files