Add configurable directory

Add configurable directory, rather than relying on the session working directory.
Can we keep with convention and go with uppercase `WRITEABLEDIR` instead of `WriteableDir` please? :)