added config for maximum redirects

added config for maximum redirects used by stream context in
file_get_contents. If set to low it can happen to fail download the zip
from github.