Added -L to curl request so that redirects are followed.

This is the updated pull request for adding the -L curl argument.