build script fixed base_dir reusage; clash of clans - dark barracks troops calculation