Handle redirects properly for both Bintray and Maven