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

Just added a flag, that's set depending on parsed command arguments.

Fixes #193