JQ: Check for tree or hist file in batch_alcapana.sh script so as not to waste time downloading and submitting a job.