fix issue 680

this is a quick fix for issue #680

long term we need to fix the underlying issue which is that we need a portable replacement for QApplication.applicationDirPath