Player-controlled troops aren't influenced by BAI and what you describe is a generic pathfinding problem. If you use the pathfinding file provided in download, it should get better. Nonetheless, there is no permanent fix for this problem, as it's simply the inner architecture of the game we can't access at all.