fix hg detection for non-teamplay modes