Ensuring query-dir exists when running a query