fixing spelling in sessiondir variable name (should be session_dir)