fixing the github download url and adding -L switch to curl