Add configurable directory

Add configurable directory, rather than relying on the session working directory.