Gn2 fix installation

fix for a missing call to .exists() method and for a wrong management of pseudo-associated lists of file (.xml and .sld are potentially not in the same order).