Follow redirects when downloading with curl
Remove user and OS dependency for figuring out the profile paths