Added GeneratorUtilities.prototype.isBaseDirExists function.

Prevent compound to not create base directory when it already exists.