Added a few sanity checks to getQueryLogPath() in kleaver.