changing running check to be specific to the directory from which epiquery is running