Fixes #193. DirectoryCatalog is not initialized if script name isn't passed.
Merge pull request #194 from denis-mentey/dev

DirectoryCatalog is not initialized if script name isn't passed.