curl follow redirects not working as expected on centos