fix fetch_tarball return code