The URL structure for the global_composer.sh file was outdated and made curl download the redirect page.