Trim off extra quotes using sed

Some shells will fail to treat the cookie properly and result in the script failing to connect. This attempts to strip out the extra single quotes that some systems insert.