Automatically create the cookie directory.

Fixes #43