- fix the bug when if directory name is same as one of switches in build.cfg, this switch will not be used during the compilation
- fix the bug with ever growing config file for internal libraries