use curl instead of tar to download a file