prevent Void call in class invariant in case of not existing directory
fixed typo
closes #50