Change of order: create tmpdir before fetching url.