Properly follow weird AWS redirects.