Bugfix: invalid dir