bugfix: tweaking def of directory variable