Gather rally points currently use gather-near-position, which isn't ideal, for mines in particular:
It tries to move closest to the center of the target (which is impassable and bad for pathfinding), but only needs to get in gathering range of the target.
If we change the command to gather when the target still exists, the paths are much better.