make curl follow redirect with -L option