improve guessing of appdata.xml file name