bugfix unspecified error on missing dir-parameter