Changed cookie path for POSIX systems to avoid insufficient permissions.

Hello.

I tried to put `coursera` in the directory `/opt` so that every user of the computer can use the script. But when I ran the script as non-root users, I got permission denied at `_cache`.

So I did a small hack on the variable `PATH_CACHE`. I have tested the code myself, and it worked in my case.