Skip followlocation

If php `safe_mode` or `open_basedir` is turned on curl will throw an error saying it `CURLOPT_FOLLOWLOCATION` option cannot be used.

Add a check to see if these two modes are in effect. However this will disable redirections.