Follow redirects with curl on unix