Made curl follow links when URL redirected