using the QFile and QDirectory api to access files relative to '.qgis2'.