Accomodate PHP 5.5 deprecation of @filename API

Few minor changes to remove the PHP 5.5 warning when using @filename API for cURL.