fixed araqne/issue#30. NPE caused by non-existing directory