Only setup vars if download exists. #2214