replace curly by wget such that http redirects are followed