fix issue with CURLOPT_FOLLOWLOCATION

This is fix for error "PHP warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set"