Now using sesdir instead of curdir (and removed typo)