added test for case when config dir is empty, closes #290
merge branch 'issue290' into devel