Make curl follow redirects

Added the `-L` switch to make curl follow redirects