Sanity-check the data a little, so that if somebody runs the script with a nonexistent version we explicitly error instead of throwing a weird error.