Fixed build. and cfgDirectory.