fix some confusion about paths relative to the files dir and to the data dir