Fixed a Qt4 issue (missing static QFileInfo::exists()).