Fix Path for cURL

Fix Path for Cookie on cURL. Right now if can't write able, the scrip
will stop you by a die() function.