Move session name and directory creation to ready(). Bugfixes.