Fix the versions.json download.

Make sure the directory exists.