Copy libs.xml before sed'ing it