[Issue 171] Fix empty cache function
Also replace s_exeLocation with QCoreApplication::applicationDirPath() and remove
some unneeded code